<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../js/css.js"></script>
    <link rel="stylesheet" href="../css/style-zj.css">
</head>
<body>
    <header><a class="icon_back"></a>订单详情</header>
    <div class="pay-success" v-cloak>
        <div class="header-c">
            <div class="ok-png" v-if="code == 0"></div>
            <div class="false-png" v-else></div>
            <div class="pay-text" v-if="code == 0">支付成功</div>
            <div class="pay-text" v-if="code == -1">支付错误</div>
            <div class="pay-text" v-if="code == -2">支付失败</div>
            <div class="pay-text" v-if="code == 1">重复支付</div>
            <div class="look-text">点击查看拍摄进度>></div>
        </div>
        <div class="detail-content">
            <div class="back-content comm1-orderdetail">
                <div class="title-you">期待您的光临</div>
                <div class="li-text">
                    <div>
                        <div class="cont"><i class="png-1 time1-icon icon-top2"></i>拍摄时间：<span>{{progress.shootTime?progress.shootTime:'待选择'}}<i class="png-2 problem-icon icon-top2"></i></span></div>
                    </div>
                    <div>
                        <div class="cont"><i class="png-1 dianpu1-icon icon-top2"></i>拍摄门店：<span>{{progress.storeName}}</span></div>
                    </div>
                    <div>
                        <div class="cont"><i class="png-1 weizhi-icon icon-top2"></i>拍摄地址：<span>{{progress.storeAddress}}</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="back_d">返回门店</div>
        <div class="follow-me">关注 ”云家故事“ 公众号</div>
    </div>
</body>
<script src="../js/config.js"></script>
<script>


  var orderId = getUrlParam("orderId");
  var code = getUrlParam("code");
  var app = new Vue({
      el: '.pay-success',
      data: {
          imgBaseurl:imgBaseurl,
          progress:'',
          code:code,
      },
      beforeCreate: function () {
          var that = this;
          get_ajax("order/getScheduleDetail", {orderId:orderId,token:token}, function (data) {
              app.progress = data;
          });
      },
      updated: function () {

      },
      methods:{
          jumpDetail:function (id) {
              location.href='product.html?productId='+id;
          },
      }
  })

  $(document).on('click','.back_d',function(){
      window.location.href='store-detail.html?storeId='+app.progress.storeId;
  })
  $(document).on('click','.look-text',function(){
      window.location.href='progress.html?orderId='+orderId
  })
</script>
</html>